package org.csu.newpetstoreback.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("account")
public class Account {
    @TableId(value = "username", type = IdType.INPUT)
    private String username;
    private String email;
    @TableField(value = "realname")
    private String realname;
//    private String status;
    @TableField(value = "addr1")
    private String address1;
//    @TableField(value = "addr2")
//    private String address2;
    private String city;
//    private String state;
//    private String zip;
    private String country;
    private String phone;
    @TableField(value = "aImage")//为什么这里需要？不然会出错
    private String aImage;

}
